
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Wifi 用户欢迎页</title>

<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-theme.min.css" rel="stylesheet">

<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
      <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<style type="text/css">
#bodybg {
	position: absolute;
	width: 100%;
	height: 100%;
	left: 0px;
	top: 0px;
	z-index: 0;
}

#bodybg .stretch {
	width: 100%;
	height: 100%;
}
</style>
<script type="text/javascript" language="javascript">
			//当浏览器窗口大小改变时，设置显示内容的高度  
			window.onresize=function(){
				location.replace(location.href);
			}  
		</script>
</head>
<body>

		<h1>这里是原网页的内容</h1>
		<p>下面是iFrame中的内容</p>
		<iframe id="iframepage" width="100%" height="300" frameborder="0" scrolling="no" src="wifi.html" onload="iFrameHeight();"></iframe>
		<p>上面是iFrame中的内容</p>
		<script type="text/javascript" language="javascript">
			function iFrameHeight() {
				var ifm = document.getElementById("iframepage");
				var subWeb = document.frames ? document.frames["iframepage"].document : ifm.contentDocument;
				if (ifm != null && subWeb != null) {
					ifm.height = subWeb.body.scrollHeight;
					ifm.width = subWeb.body.scrollWidth;
				}
			}
		</script>
</body>
</html>